package com.kuaimacode.kframework.mybatis.models.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("sys_message")
public class SysMessage implements java.io.Serializable {

    @TableField(exist=false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户ID，系统消息时默认0")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "消息类型 0 系统消息 1 个人消息")
    @TableField("type")
    private Byte type;

    @ApiModelProperty(value = "用户类型 0 普通用户 1 师傅")
    @TableField("user_type")
    private Byte userType;

    @ApiModelProperty(value = "是否已读 0 否 1 是")
    @TableField("is_read")
    private Byte isRead;

    @ApiModelProperty(value = "消息标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "副标题")
    @TableField("subtitle")
    private String subtitle;

    @ApiModelProperty(value = "消息内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_at")
    private Date createAt;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_at")
    private Date updateAt;
}